package com.dianrui.fmi.activity;

import android.widget.TextView;

import com.dianrui.fmi.R;
import com.dianrui.fmi.util.StringUtils;

import butterknife.BindView;
import butterknife.OnClick;

public class AccountInfoActivity extends BaseActivity {

    @BindView(R.id.title)
    TextView title;
    @BindView(R.id.account_name)
    TextView accountName;
    @BindView(R.id.email)
    TextView email;
    @BindView(R.id.bank_card)
    TextView bankCard;
    @BindView(R.id.tel)
    TextView tel;

    @Override
    public int getContentViewId() {
        return R.layout.activity_account_info;
    }

    @Override
    public void initView() {
      title.setText(getString(R.string.account_info));
        if (!StringUtils.isEmpty(spUtils.getString("nickname"))) {
            accountName.setText(spUtils.getString("nickname"));
        }
        if (!StringUtils.isEmpty(spUtils.getString("email"))) {
            email.setText(spUtils.getString("email"));
        }
        if (!StringUtils.isEmpty(spUtils.getString("mobile"))) {
            tel.setText(spUtils.getString("mobile"));
        }
    }



    @OnClick(R.id.back)
    public void onViewClicked() {
        finish();
    }
}
